/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrn.engcomp.pds.helloopc.algoritmos;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Felipe Rivas
 */
public abstract class AbstractAlgoritmoControlador implements IAlgoritmoControlador {

    protected double erroAtual = 0.0;
    protected Map<String, Double> parametros = new HashMap<String, Double>();

    //@Override
    protected double getParametro(String nome) {
        return parametros.get(nome);
    }

    @Override
    public void setParametro(String nome, double valor) {
        parametros.put(nome, valor);
    }

    @Override
    public abstract Map<String, Object> calcularResposta(Map<String, Object> valoresProcesso, double referencia, double tempo);

}
